Change-Id: I7f018b7f7219e7a17a3059b3ec9cbdf1c2c1e043
}
/**
- * Test if it's safe to load this User object
+ * Test if it's safe to load this User object. You should typically check this before using
+ * $wgUser or RequestContext::getUser in a method that might be called before the system has
+ * been fully initialized. If the object is unsafe, you should use an anonymous user:
+ * \code
+ * $user = $wgUser->isSafeToLoad() ? $wgUser : new User;
+ * \endcode
+ *
+ * @since 1.27
* @return bool
*/
public function isSafeToLoad() {